import request from '@/api/http.js'

// 获取订单详情数据列表 --OrderDetailInfo 价格
export const orderDetailSearchList = (id) =>{
    return request.get('api/OrderDetailInfo/getPageData?id='+id)
}

// 获取所有订单数据 --OrderInfo
export const orderSearchList = () =>{
    return request.get('api/OrderInfo/getPageDate')
}

// 条件搜索 --OrderInfo
export const orderInfoSearch = (params) => {
    console.log('发送参数:', params)
    console.log('最终请求 URL:', 'api/OrderInfo/getPageDate', params);
    const query = new URLSearchParams(params).toString();
    return request.get(`api/OrderInfo/getPageDate?${query}`);
};

// return request.delete('/category/delete?id='+id) 